package D240523.Timer;

public class StringSplicing {
    public void plusSplice() {
        String string = "";
        for (int i = 0; i < 100000; i++) {
            string += i;
        }
    }

    public void bufferAppendSplice() {
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < 100000; i++) {
            stringBuffer.append(i);
        }
    }

    public void builderAppendSplice() {
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < 100000; i++) {
            stringBuilder.append(i);
        }
    }


}
